import { defineUserConfig } from 'vuepress'
import type { DefaultThemeOptions } from 'vuepress'

export default defineUserConfig<DefaultThemeOptions>({
  title: 'xanqanのblog',
  description: '',
  theme: 'reco',
  head: [
    [
        "link",
        {
            "rel": "icon",
            "href": "/logo.png"
        }
    ],
  ],
  // plugins: [['vuepress-plugin-code-copy', true]],
  themeConfig: {
    logo: '/logo.png',
    author: 'xanqan',
    lastUpdatedText: '',
    series: {
      '/docs/Vue3/': [
        {
          text: 'Vue3',
          children: ['Vue3-01', 'Vue3-02', 'Vue3-03', 'Vue3-04', 'Vue3-05', 'Vue3-06', 'Vue3-07', 
          'Vue3-08', 'Vue3-09', 'Vue3-10', 'Vue3-11', 'Vue3-12', 'Vue3-13', 'Vue3-14']
        },
      ],
      '/docs/MySQL/': [
        {
          text: 'MySQL',
          children: ['MySQL-01', 'MySQL-02', 'MySQL-03', 'MySQL-04', 'MySQL-05', 'MySQL-06', 'MySQL-07', 
          'MySQL-08', 'MySQL-09', 'MySQL-10', 'MySQL-11', 'MySQL-12', 'MySQL-13', 'MySQL-14', 'MySQL-15']
        },
      ],
      '/docs/Redis/': [
        {
          text: 'Redis',
          children: ['Redis-01', 'Redis-02', 'Redis-03', 'Redis-04', 'Redis-05', 'Redis-06', 'Redis-07', 
          'Redis-08', 'Redis-09', 'Redis-10', 'Redis-11', 'Redis-12']
        },
      ],
      '/docs/MongoDB/': [
        {
          text: 'MongoDB',
          children: ['MongoDB-01', 'MongoDB-02']
        },
      ],
      '/docs/RabbitMQ/': [
        {
          text: 'RabbitMQ',
          children: ['RabbitMQ-01', 'RabbitMQ-02', 'RabbitMQ-03', 'RabbitMQ-04', 'RabbitMQ-05', 'RabbitMQ-06', 'RabbitMQ-07', 
          'RabbitMQ-08', 'RabbitMQ-09', 'RabbitMQ-10', 'RabbitMQ-11', 'RabbitMQ-12']
        },
      ],
      '/docs/Nginx/': [
        {
          text: 'Nginx',
          children: ['Nginx-01', 'Nginx-02', 'Nginx-03', 'Nginx-04', 'Nginx-05', 'Nginx-06', 'Nginx-07']
        },
      ],
      '/docs/Docker/': [
        {
          text: 'Docker',
          children: ['Docker-01', 'Docker-02','Docker-03', 'Docker-04','Docker-05','Docker-06']
        },
      ],
      '/docs/Structure/': [
        {
          text: '数据结构',
          children: ['Structure-01','Structure-02','Structure-03','Structure-04','Structure-05','Structure-06','Structure-07'
          ,'Structure-08','Structure-09','Structure-10','Structure-11']
        },
      ],
      '/docs/Sorting/': [
        {
          text: '排序算法',
          children: ['Sorting-01','Sorting-02','Sorting-03','Sorting-04','Sorting-05','Sorting-06','Sorting-07','Sorting-08'
          ,'Sorting-09','Sorting-10']
        },
      ],
      '/docs/Algorithm/': [
        {
          text: '算法思想',
          children: ['Algorithm-01','Algorithm-02','Algorithm-03','Algorithm-04']
        },
      ],
      '/docs/Elasticsearch/': [
        {
          text: '算法思想',
          children: ['Elasticsearch-01','Elasticsearch-02','Elasticsearch-03','Elasticsearch-04']
        },
      ] 
    },
    navbar:
    [
      { text: '主页', link: '/' },
      {
        text: "算法",
        children: [{
            text: "算法基础和思想",
            children: [{
                text: "数据结构",
                link: "/docs/Structure/Structure-01"
            },{
                text: "排序算法",
                link: "/docs/Sorting/Sorting-01"
            },{
                text: "算法思想",
                link: "/docs/Algorithm/Algorithm-01"
            }]
        }]
      },
      {
        text: "前端",
        children: [{
            text: "Vue",
            children: [{
                text: "Vue3 学习笔记",
                link: "/docs/Vue3/Vue3-01"
            }]
        }]
      },
      {
        text: "后端|中间件",
        children: [{
            text: "中间件",
            children: [{
                text: "RabbitMQ 学习笔记",
                link: "/docs/RabbitMQ/RabbitMQ-01"
            }]
        }]
      },{
        text: "数据库",
        children: [{
            text: "SQL数据库",
            children: [{
                text: "MySQL 学习笔记",
                link: "/docs/MySQL/MySQL-01"
            }]
        }, {
            text: "NoSQL数据库",
            children: [{
                text: "Redis 学习笔记",
                link: "/docs/Redis/Redis-01"
            },{
                text: "MongoDB 学习笔记",
                link: "/docs/MongoDB/MongoDB-01"
            },{
                text: "Elasticsearch 学习笔记",
                link: "/docs/Elasticsearch/Elasticsearch-01"
            }]
        }]
      },
      {
        text: "部署|工具",
        children: [{
            text: "Nginx 学习笔记",
            link: "/docs/Nginx/Nginx-01"
        }, {
            text: "Docker 学习笔记",
            link: "/docs/Docker/Docker-01"
        },{
            text: "Linux 常用命令",
            link: "/docs/blog/Linux-01"
          },{
            text: "Hutool 工具库",
            link: "/docs/blog/Hutool-01"
          }]
      },
      { text: '关于', link: '/blogs/other/frist' },
    ],
  },
})
